package hcn.protocol.brandnew.zhenliao.jianyan;

import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
import hcn.protocol.brandnew.BaseRequest;


/**
 * 检验申请项目附加费获取-请求消息 - ODS_03050005
 *
 * @author enjoyLife
 */
@Data
@XmlRootElement(name = "MsgBody")
@XmlAccessorType(XmlAccessType.FIELD)
public class LabRequestGetSurchargeRequest extends BaseRequest {

    /**
     * 请求信息
     */
    @XmlElement(name = "Request")
    private Request request;

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class Itemlist {

        /**
         * 检验申请单编号
         */
        @XmlElement(name = "RequestId")
        private String requestId;
        /**
         * 检验项目代码
         */
        @XmlElement(name = "ItemCode")
        private String itemCode;
        /**
         * 检验项目名称
         */
        @XmlElement(name = "ItemName")
        private String itemName;
        /**
         * 项目数量
         */
        @XmlElement(name = "ItemCount")
        private String itemCount;
        /**
         * 标本类别代码
         */
        @XmlElement(name = "SampleTypeCode")
        private String sampleTypeCode;
        /**
         * 标本类别名称
         */
        @XmlElement(name = "SampleTypeName")
        private String sampleTypeName;
    }

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class Request {

        /**
         * 就诊机构代码
         */
        @XmlElement(name = "VisitOrganization")
        private String visitOrganization;
        /**
         * 项目明细列表
         */
        @XmlElementWrapper(name = "Itemlists")
        @XmlElement(name = "Itemlist")
        private List<Itemlist> itemlists;
    }

}
